<!DOCTYPE html>
<HTML>
    <HEAD>
        <TITLE> ZTREE DEMO - checkbox</TITLE>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <link href="__PUBLIC_ADMIN__/Styles/general.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC_ADMIN__/Styles/main.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/public/Admin/JS/jquery.2.1.1.js"></script>
        <link href="/public/Admin/Font/iconfont.css" rel="stylesheet" type="text/css"/>
        <link href="/public/Admin/Css/test.css" rel="stylesheet" type="text/css"/>
    </HEAD>
    <body>
        <div id="frameBor">
            <div class="main">
                <div class='main_left' id="choice">
                    <foreach  name="goods_class_info[0]" item="vo1" key="k1">
                        <ul class='level_one'>
                            <li data-ids="{$vo1.class_id}" ><span class='iconfont active' data-actone="Y">&#xe683;</span><span class='iconfont' style="color:green" data-actone="N">&#xe662;</span>{$vo1.name}<strong class="iconfont" data-state2="Y" style="display:none">&#xe698;</strong><strong class="iconfont" data-state2="N">&#xe60b;</strong>
                            <foreach  name="goods_class_info[$k1]" item="vo2" key="k2">
                                <ul class='leval_two'>
                                    <li data-ids="{$vo2.class_id}"><span class='iconfont active' data-actone="Y">&#xe683;</span><span class='iconfont' style="color:green" data-actone="N">&#xe662;</span>{$vo2.name}<strong class="iconfont" data-state2="Y"  style="display:none">&#xe698;</strong><strong class="iconfont" data-state2="N">&#xe60b;</strong>
                                    <foreach  name="goods_class_info[$k2]" item="vo3">
                                        <ul class='leval_three'>
                                            <li data-ids="{$vo3.class_id}"><span class='iconfont active' data-actone="Y">&#xe683;</span><span class='iconfont' style="color:green" data-actone="N">&#xe662;</span>{$vo3.name}</li>
                                        </ul>
                                    </foreach>
                                    </li>
                                </ul>
                            </foreach >
                            </li>
                        </ul>
                    </foreach >
                </div>

                <div class="main_center" id="mainCenter">
                    <dl class="option">
                        <dt>全选<span class="iconfont" data-state1="1" data-state2="Y">&#xe60c;</span><strong class="iconfont">&#xe692;</strong></dt>
                        <dd id="topFrname">
                        </dd>
                    </dl>
                    <dl class="appoint">
                        <dt>全删<span class="iconfont" data-state1="1" data-state2="N">&#xe6ac;</span></dt>
                        <dd id="bottomFrname">
                        </dd>
                    </dl>
                </div>


                <div id="noClose">
                </div>
                <span class="iconfont" id="closeSpan">&#xe602;</span>
            </div>
        </DIV>

        <form action="{:U('Platform/add')}" method="post" name="my_form" id="my_form" enctype="multipart/form-data">
            <table width="100%" id="general-table">
                <input type="hidden" value="{$res.entity_coupon_id}" name="entity_coupon_id">
                <tr>
                    <td class="label">商品及商品分类选择:</td>
                    <td id="confButton">
                        确认选择
                    </td>

                </tr>
                <tr>
                    <td class="label">优惠券名称:</td>
                    <td>
                        <input type='text' name='coupon_name' maxlength="20" value='' size='27' /> <font color="red">*</font>
                    </td>
                </tr>

                <tr>
                    <td class="label">优惠券介绍:</td>
                    <td>
                        <input type='text' name='intro' maxlength="20" value='' size='27' /> <font color="red">*</font>
                    </td>
                </tr>

                <tr>
                    <td class="label">兑换所需积分:</td>
                    <td>
                        <input type='text' name='integral' maxlength="20" value='{$res.integral}' size='27' /> <font color="red">*</font>
                    </td>
                </tr>

                <tr>
                    <td class="label">VIP所专属:</td>
                    <td>
                        <select id="" name="vip_exclusive" style="width:150px;">
                            <option value="0">普通优惠券</option>
                            <option value="1">VIP1以上可以兑换</option>
                            <option value="2">VIP2以上可以兑换</option>
                            <option value="3">VIP3以上可以兑换</option>
                            <option value="4">VIP4以上可以兑换</option>
                            <option value="5">VIP5以上可以兑换</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="label">开始领取时间:</td>
                    <td>
                        <input type="text" name="start_time" onfocus="MyCalendar.SetDate(this)" value="">
                    </td>
                </tr>
                <tr>
                    <td class="label">结束领取时间:</td>
                    <td>
                        <input type="text" name="end_time" onfocus="MyCalendar.SetDate(this)" value="">
                    </td>
                </tr>

                <tr>
                    <td class="label">可以使用时间:</td>
                    <td>
                        <input type='text' name='use_time' maxlength="20" value="" size='27'/>天 <font color="red">*</font>
                    </td>
                </tr>

                <tr id="lost">
                    <td class="label">失效类型:</td>
                    <td>
                        <input type="radio" name="lost_type" value="0" checked='checked'/> 定期失效
                        <input type="radio" name="lost_type" value="1"  /> 周期性失效
                    </td>
                </tr>

                <tr id="regular">
                    <td class="label">定期失效时间:</td>
                    <td>
                        <input type='text' name='lost_time' maxlength="20"  onfocus="MyCalendar.SetDate(this)" value='' size='27'  /> <font color="red">*</font>
                    </td>
                </tr>

                <tr  style="display:none"  id="cycle">
                    <td class="label">周期失效时间:</td>
                    <td>
                        <input type='text' name='lost_cycle' maxlength="20" value='' size='27' />天 <font color="red">*</font>
                    </td>
                </tr>


                <tr id="couponType">
                    <td class="label">优惠卷类型:</td>
                    <td>
                        <input type="radio" name="coupon_type" value="0" checked='checked'/> 代金劵
                        <input type="radio" name="coupon_type" value="1"  /> 折扣劵
                    </td>
                </tr>

                <tr id="quota">
                    <td class="label">代金卷时金额:</td>
                    <td>
                        <input type='text' name='quota' maxlength="20" value='' size='27'  /> 元
                    </td>
                </tr>

                <tr  style="display:none"  id="discount">
                    <td class="label">折扣卷时折扣:</td>
                    <td>
                        <input type='text' name='discount' maxlength="20" value='10.00' size='27' />注意：范围 0.00 - 10.00
                    </td>
                </tr>

                <tr>
                    <td class="label">优惠券数量:</td>
                    <td>
                        <input type='text' name='coupon_num' maxlength="20" value='{$res.coupon_num}' size='27' /> <font color="red">*</font>
                    </td>
                </tr>
                <tr>
                    <td class="label">优惠券状态:</td>
                    <td>

                        <input type="radio" name="state" value="1" checked="checked">启用
                        <input type="radio" name="state" value="0">禁用
                    </td>
                </tr>

                <tr>
                    <td class="label">是否显示在首页</td>
                    <td>
                        <input type="radio" name="is_home" value="1" checked="checked">是
                        <input type="radio" name="is_home" value="0">否
                    </td>
                </tr>


                <tr>
                    <td class="label">条件（满多少才能领取）:</td>
                    <td>
                        <input type='text' name='coudition' maxlength="20" value='' size='27' />元
                    </td>
                </tr>

                <tr style="display:none">
                    <td class="label">条件（满多少才能领取）:</td>
                    <td>
                        <input id="classIds" type='text' name='class' maxlength="20" value=''/>
                    </td>
                </tr>
                <tr style="display:none">
                    <td class="label">条件（满多少才能领取）:</td>
                    <td>
                        <input id="goodsIds" type='text' name='goods' maxlength="20" value=''/>
                    </td>
                </tr>


            </table>
            <div class="button-div">
                <input type="submit" value=" 确定 " id="sub" />
            </div>
        </form>
    </body>
    <script type="text/javascript" src="/public/Admin/JS/test.js"></script>
    <script type="text/javascript" src="/public/Admin/JS/shopChoice.js"></script>
    <script type="text/javascript" src="/public/Admin/JS/mydate.js"></script>





